// src/store/modules/loading.ts
const useLoadingStore = defineStore('loadingStore', {
    state: () => ({
        isLoading: false,
        loadingType: 'circle'
    }),
    actions: {
        setIsLoading(payload: boolean) {
            this.isLoading = payload;
        },
        open() {
            this.setIsLoading(true);
        },
        close() {
            this.setIsLoading(false);
        },
        setLoadingType(payload: string) {
            this.loadingType = payload
        }
    }
});

export default useLoadingStore;
